<?php
	require('../functions/xml.class.php');
	
	$parserXML = new XmlParser();
	
	$xml = $parserXML->loadXML("InterfaceInterface.xml");
	
	/*foreach($xml->Sample as $sample) {
		echo "<table width=\"100px\" border=\"1\">\n";		
		echo "<caption>".$sample->Date."</caption>\n";
		foreach($sample->DataSample as $dataSample) {
			foreach($dataSample->ValueForVar as $var) {
				$parserXML->askQuestion($var->VarId);
				echo "<tr><td>".$var->VarId."</td><td>".$var->Value."</td></tr>\n";
			}
		}
		echo "</table>";
	}*/
	unlink("ask.xml");
	foreach($xml->Sample->DataSample->ValueForVar as $var) {
			$parserXML->askQuestion($var->VarId);				
	}
	
	header('location: answered.php');

?>